﻿<local:baseParametersPage x:Class="USMC.Net.encoderParametersPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:USMC.Net"
      mc:Ignorable="d" 
	Title="encoderParametersPage">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Label Grid.Column="1" Grid.Row="0">X</Label>
        <Label Grid.Column="2" Grid.Row="0">Y</Label>
        <TextBlock Grid.Column="0" Grid.Row="1">Состояние</TextBlock>
        <TextBlock Grid.Column="0" Grid.Row="2">Остановка при ошибке энкодера</TextBlock>
        <ToggleButton IsThreeState="True" Grid.Column="1" Grid.Row="1" IsChecked="False">
            <ToggleButton.Style>
                <Style TargetType="{x:Type ToggleButton}">
                    <Setter Property="Content" Value="Отключен"/>
                    <Style.Triggers>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter Property="Content" Value="Включен"/>
                        </Trigger>
                        <Trigger Property="IsChecked" Value="{x:Null}">
                            <Setter Property="Content" Value="Инверт."/>
                        </Trigger>
                    </Style.Triggers>
                </Style>
            </ToggleButton.Style>
        </ToggleButton>
    </Grid>
</local:baseParametersPage>
